home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIObjects.xh < prev    next >
Text File  |  1996-05-01  |  32KB  |  1,110 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIObjects.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIObject_xh
  11. #define SOM_HIObject_xh
  12.  
  13. class HIObject;
  14.  
  15. #define HIObject_MajorVersion 0
  16. #define HIObject_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <Types.h>
  22. #include <Quickdraw.h>
  23. #include <TextObjects.h>
  24. #include <Drag.h>
  25. #include <Collections.h>
  26. #include <HIImagingObjects.xh>
  27. #include <HIObjectTypes.h>
  28.  
  29. /* C++ SOM defs */
  30. #include <somcls.xh>
  31. #include <somcm.xh>
  32.  
  33. /* C++ parent defs */
  34. #ifndef SOM_SOMObject_xh
  35. #include <somobj.xh>
  36. #endif
  37.  
  38. #ifndef HIObject_API
  39. #define HIObject_API
  40. /*
  41.  * -- The Class API
  42.  */
  43.  
  44. /*
  45.  * Start of user-defined types:
  46.  */
  47. class SOMClass;
  48. class SOMObject;
  49. class HIWindow;
  50.  
  51. /*
  52.  * End of user-defined types.
  53.  */
  54.  
  55. #ifdef OLDIBMSOMAPISUPPORT
  56. #define HIObjectCClassData HIObjectClassData
  57. #define HIObjectNewClass(major,minor) somNewVersionedClassReference(HIObject,major,minor)
  58. #endif
  59.  
  60. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  61. #define HIObjectMetaClass SOMClass
  62.  
  63. #if PRAGMA_ALIGN_SUPPORTED
  64. #  pragma options align=power
  65. #endif
  66.  
  67. /* The API to the HIObject class object, and the methods it introduces. */
  68. SOMEXTERN struct HIObjectClassDataStructure {
  69. #ifdef OLDIBMSOMAPISUPPORT
  70.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  71. #else
  72.     long zero;
  73. #endif
  74.     somStaticClassInfo *sci;
  75.     somDToken        instanceDataToken;
  76.     long reserved [3];
  77.     somMToken GetWindow;
  78.     somMToken GetPort;
  79.     somMToken GetRefLabel;
  80.     somMToken GetCollection;
  81.     somMToken AddStateChangeCallback;
  82.     somMToken RemoveStateChangeCallback;
  83.     somMToken SetBackgroundPattern;
  84.     somMToken GetBackgroundPattern;
  85.     somMToken Init;
  86.     somMToken Terminate;
  87.     somMToken InitFromAERecord;
  88.     somMToken WriteToAERecord;
  89.     somMToken CalculateOptimalSize;
  90.     somMToken GetBoundingRect;
  91.     somMToken SetBoundingRect;
  92.     somMToken SetPosition;
  93.     somMToken SetSize;
  94.     somMToken GetUpdateRect;
  95.     somMToken Enable;
  96.     somMToken Disable;
  97.     somMToken IsEnabled;
  98.     somMToken Show;
  99.     somMToken Hide;
  100.     somMToken IsVisible;
  101.     somMToken HandleAppleEvent;
  102.     somMToken HandleActivate;
  103.     somMToken HandleDeactivate;
  104.     somMToken HandleNavigation;
  105.     somMToken HandleMouseDownInContent;
  106.     somMToken HandleMouseUpInContent;
  107.     somMToken HandleMouseMovedInContent;
  108.     somMToken HandleMouseStoppedMovingInContent;
  109.     somMToken TakeUserInputFocus;
  110.     somMToken ReleaseUserInputFocus;
  111.     somMToken HasUserInputFocus;
  112.     somMToken CanReleaseUserInputFocus;
  113.     somMToken SetUserInputFocusFlags;
  114.     somMToken GetUserInputFocusFlags;
  115.     somMToken SetTitle;
  116.     somMToken GetTitle;
  117.     somMToken Draw;
  118.     somMToken Erase;
  119.     somMToken Invalidate;
  120.     somMToken GetDrawingMode;
  121.     somMToken SetDrawingMode;
  122.     somMToken Cut;
  123.     somMToken Copy;
  124.     somMToken Paste;
  125.     somMToken Clear;
  126.     somMToken SetClipboardSupportFlags;
  127.     somMToken GetClipboardSupportFlags;
  128.     somMToken DrawContent;
  129.     somMToken EraseContent;
  130.     somMToken TranslatePoint;
  131.     somMToken TranslateRect;
  132.     somMToken StateChanged;
  133.     somMToken Verify;
  134.     somMethodProc *GetHIObjectFromRefLabel;
  135.     somMethodProc *GetNewHIObject;
  136.     somMethodProc *GetNewHIObjectFromResource;
  137.     somMToken Clone;
  138.     somMToken Release;
  139.     somMToken GetOwnerCount;
  140. } SOMDLINK HIObjectClassData;
  141.  
  142. #if PRAGMA_ALIGN_SUPPORTED
  143. #  pragma options align=reset
  144. #endif
  145.  
  146. #if !defined(HIObject_Class_Source) && !defined(SOM_Module_hiobjects_Source)
  147. #if PRAGMA_IMPORT_SUPPORTED
  148. #pragma import list HIObjectClassData
  149. #endif
  150. #endif
  151.  
  152.  
  153. /*
  154.  * -- Typedefs for HIObject Method Procedures
  155.  */
  156. SOMEXTERN {
  157. typedef HIWindow*   (* SOMLINK somTD_HIObject_GetWindow)(HIObject *somSelf, Environment *ev);
  158. typedef CGrafPtr   (* SOMLINK somTD_HIObject_GetPort)(HIObject *somSelf, Environment *ev);
  159. typedef void   (* SOMLINK somTD_HIObject_GetRefLabel)(HIObject *somSelf, Environment *ev,
  160.         RefLabel* identifier);
  161. typedef Collection   (* SOMLINK somTD_HIObject_GetCollection)(HIObject *somSelf, Environment *ev);
  162. typedef OSStatus   (* SOMLINK somTD_HIObject_Init)(HIObject *somSelf, Environment *ev,
  163.         RefLabel* identifier,
  164.         Rect* boundingRect);
  165. typedef void   (* SOMLINK somTD_HIObject_Terminate)(HIObject *somSelf, Environment *ev);
  166. typedef HIObject*   (* SOMLINK somTD_HIObject_Clone)(HIObject *somSelf, Environment *ev);
  167. typedef void   (* SOMLINK somTD_HIObject_Release)(HIObject *somSelf, Environment *ev);
  168. typedef ItemCount   (* SOMLINK somTD_HIObject_GetOwnerCount)(HIObject *somSelf, Environment *ev);
  169. typedef OSStatus   (* SOMLINK somTD_HIObject_InitFromAERecord)(HIObject *somSelf, Environment *ev,
  170.         AESubDesc* baseInitializerData,
  171.         AESubDesc* initializerDataForClass,
  172.         HIAERecordDataFormat dataFormat);
  173. typedef OSStatus   (* SOMLINK somTD_HIObject_WriteToAERecord)(HIObject *somSelf, Environment *ev,
  174.         AERecord* dataForSubclass,
  175.         AERecord* objectData,
  176.         HIAERecordDataFormat dataFormat);
  177. typedef void   (* SOMLINK somTD_HIObject_CalculateOptimalSize)(HIObject *somSelf, Environment *ev,
  178.         SInt16* optimalWidth,
  179.         SInt16* optimalHeight);
  180. typedef void   (* SOMLINK somTD_HIObject_GetBoundingRect)(HIObject *somSelf, Environment *ev,
  181.         HICoordinateSystem coordinate,
  182.         Rect* boundingRect);
  183. typedef void   (* SOMLINK somTD_HIObject_SetBoundingRect)(HIObject *somSelf, Environment *ev,
  184.         HICoordinateSystem coordinate,
  185.         Rect* newBoundingRect);
  186. typedef void   (* SOMLINK somTD_HIObject_SetPosition)(HIObject *somSelf, Environment *ev,
  187.         HICoordinateSystem coordinate,
  188.         Point* newPosition);
  189. typedef void   (* SOMLINK somTD_HIObject_SetSize)(HIObject *somSelf, Environment *ev,
  190.         SInt16 width,
  191.         SInt16 height);
  192. typedef void   (* SOMLINK somTD_HIObject_GetUpdateRect)(HIObject *somSelf, Environment *ev,
  193.         HICoordinateSystem coordinate,
  194.         Rect* updateRect);
  195. typedef void   (* SOMLINK somTD_HIObject_Enable)(HIObject *somSelf, Environment *ev);
  196. typedef void   (* SOMLINK somTD_HIObject_Disable)(HIObject *somSelf, Environment *ev);
  197. typedef boolean   (* SOMLINK somTD_HIObject_IsEnabled)(HIObject *somSelf, Environment *ev);
  198. typedef void   (* SOMLINK somTD_HIObject_Show)(HIObject *somSelf, Environment *ev);
  199. typedef void   (* SOMLINK somTD_HIObject_Hide)(HIObject *somSelf, Environment *ev);
  200. typedef boolean   (* SOMLINK somTD_HIObject_IsVisible)(HIObject *somSelf, Environment *ev);
  201. typedef OSStatus   (* SOMLINK somTD_HIObject_HandleAppleEvent)(HIObject *somSelf, Environment *ev,
  202.         AEEventClass eventClass,
  203.         AEEventID eventID,
  204.         AppleEvent* theEvent,
  205.         AppleEvent* reply,
  206.         AEHandlerTableRef handlerTableRef);
  207. typedef OSStatus   (* SOMLINK somTD_HIObject_HandleActivate)(HIObject *somSelf, Environment *ev,
  208.         AppleEvent* theEvent,
  209.         AppleEvent* reply,
  210.         AEHandlerTableRef handlerTableRef);
  211. typedef OSStatus   (* SOMLINK somTD_HIObject_HandleDeactivate)(HIObject *somSelf, Environment *ev,
  212.         AppleEvent* theEvent,
  213.         AppleEvent* reply,
  214.         AEHandlerTableRef handlerTableRef);
  215. typedef OSStatus   (* SOMLINK somTD_HIObject_HandleNavigation)(HIObject *somSelf, Environment *ev,
  216.         SInt8 key,
  217.         SInt8 keyCode,
  218.         EventModifiers modifiers,
  219.         AppleEvent* theEvent,
  220.         AppleEvent* reply,
  221.         AEHandlerTableRef handlerTableRef);
  222. typedef OSStatus   (* SOMLINK somTD_HIObject_HandleMouseDownInContent)(HIObject *somSelf, Environment *ev,
  223.         Point* portLocalWhere,
  224.         EventModifiers modifiers,
  225.         AppleEvent* theEvent,
  226.         AppleEvent* reply,
  227.         AEHandlerTableRef handlerTableRef);
  228. typedef OSStatus   (* SOMLINK somTD_HIObject_HandleMouseMovedInContent)(HIObject *somSelf, Environment *ev,
  229.         Point* portLocalWhere,
  230.         EventModifiers modifiers,
  231.         AppleEvent* theEvent,
  232.         AppleEvent* reply,
  233.         AEHandlerTableRef handlerTableRef);
  234. typedef OSStatus   (* SOMLINK somTD_HIObject_HandleMouseStoppedMovingInContent)(HIObject *somSelf, Environment *ev,
  235.         Point* portLocalWhere,
  236.         EventModifiers modifiers,
  237.         AppleEvent* theEvent,
  238.         AppleEvent* reply,
  239.         AEHandlerTableRef handlerTableRef);
  240. typedef OSStatus   (* SOMLINK somTD_HIObject_HandleMouseUpInContent)(HIObject *somSelf, Environment *ev,
  241.         Point* portLocalWhere,
  242.         EventModifiers modifiers,
  243.         AppleEvent* theEvent,
  244.         AppleEvent* reply,
  245.         AEHandlerTableRef handlerTableRef);
  246. typedef void   (* SOMLINK somTD_HIObject_TakeUserInputFocus)(HIObject *somSelf, Environment *ev);
  247. typedef void   (* SOMLINK somTD_HIObject_ReleaseUserInputFocus)(HIObject *somSelf, Environment *ev);
  248. typedef boolean   (* SOMLINK somTD_HIObject_HasUserInputFocus)(HIObject *somSelf, Environment *ev);
  249. typedef boolean   (* SOMLINK somTD_HIObject_CanReleaseUserInputFocus)(HIObject *somSelf, Environment *ev);
  250. typedef void   (* SOMLINK somTD_HIObject_SetUserInputFocusFlags)(HIObject *somSelf, Environment *ev,
  251.         HIUserInputFocusFlags flags);
  252. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIObject_GetUserInputFocusFlags)(HIObject *somSelf, Environment *ev);
  253. typedef OSStatus   (* SOMLINK somTD_HIObject_SetTitle)(HIObject *somSelf, Environment *ev,
  254.         ConstHIImageRef title,
  255.         HIAdoptionFlags disposalAdoptionFlags);
  256. typedef OSStatus   (* SOMLINK somTD_HIObject_GetTitle)(HIObject *somSelf, Environment *ev,
  257.         HIImageRef* title);
  258. typedef void   (* SOMLINK somTD_HIObject_Draw)(HIObject *somSelf, Environment *ev,
  259.         CGrafPtr whichPort,
  260.         RgnHandle drawRgn);
  261. typedef void   (* SOMLINK somTD_HIObject_Erase)(HIObject *somSelf, Environment *ev,
  262.         CGrafPtr whichPort,
  263.         RgnHandle eraseRgn);
  264. typedef void   (* SOMLINK somTD_HIObject_Invalidate)(HIObject *somSelf, Environment *ev);
  265. typedef HIDrawingMode   (* SOMLINK somTD_HIObject_GetDrawingMode)(HIObject *somSelf, Environment *ev);
  266. typedef void   (* SOMLINK somTD_HIObject_SetDrawingMode)(HIObject *somSelf, Environment *ev,
  267.         HIDrawingMode drawingMode);
  268. typedef void   (* SOMLINK somTD_HIObject_SetBackgroundPattern)(HIObject *somSelf, Environment *ev,
  269.         PixPatHandle backgroundPattern);
  270. typedef PixPatHandle   (* SOMLINK somTD_HIObject_GetBackgroundPattern)(HIObject *somSelf, Environment *ev);
  271. typedef void   (* SOMLINK somTD_HIObject_Cut)(HIObject *somSelf, Environment *ev);
  272. typedef void   (* SOMLINK somTD_HIObject_Copy)(HIObject *somSelf, Environment *ev);
  273. typedef void   (* SOMLINK somTD_HIObject_Paste)(HIObject *somSelf, Environment *ev);
  274. typedef void   (* SOMLINK somTD_HIObject_Clear)(HIObject *somSelf, Environment *ev);
  275. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIObject_GetClipboardSupportFlags)(HIObject *somSelf, Environment *ev);
  276. typedef OSStatus   (* SOMLINK somTD_HIObject_AddStateChangeCallback)(HIObject *somSelf, Environment *ev,
  277.         HIStateChangeCallbackProcPtr changedStateCallback,
  278.         HIStateChangeCallbackRef* newCallbackRef);
  279. typedef OSStatus   (* SOMLINK somTD_HIObject_RemoveStateChangeCallback)(HIObject *somSelf, Environment *ev,
  280.         HIStateChangeCallbackRef callbackRefToRemove);
  281. typedef OSStatus   (* SOMLINK somTD_HIObject_GetHIObjectFromRefLabel)(Environment *ev,
  282.         RefLabel* identifier,
  283.         ItemCount requestedObjects,
  284.         ItemCount* totalObjects,
  285.         HIObject** theObjects);
  286. typedef OSStatus   (* SOMLINK somTD_HIObject_GetNewHIObject)(Environment *ev,
  287.         AESubDesc* objectInitializer,
  288.         HIObject** newObject);
  289. typedef OSStatus   (* SOMLINK somTD_HIObject_GetNewHIObjectFromResource)(Environment *ev,
  290.         ResID objectInitializerResourceID,
  291.         HIObject** newObject);
  292. typedef void   (* SOMLINK somTD_HIObject_DrawContent)(HIObject *somSelf, Environment *ev,
  293.         CGrafPtr whichPort,
  294.         RgnHandle drawRgn);
  295. typedef void   (* SOMLINK somTD_HIObject_EraseContent)(HIObject *somSelf, Environment *ev,
  296.         CGrafPtr whichPort,
  297.         RgnHandle regionToErase);
  298. typedef void   (* SOMLINK somTD_HIObject_TranslatePoint)(HIObject *somSelf, Environment *ev,
  299.         HICoordinateSystem translateFrom,
  300.         HICoordinateSystem translateTo,
  301.         Point* sourcePoint,
  302.         Point* translatedPoint);
  303. typedef void   (* SOMLINK somTD_HIObject_TranslateRect)(HIObject *somSelf, Environment *ev,
  304.         HICoordinateSystem translateFrom,
  305.         HICoordinateSystem translateTo,
  306.         Rect* sourceRect,
  307.         Rect* translatedRect);
  308. typedef void   (* SOMLINK somTD_HIObject_StateChanged)(HIObject *somSelf, Environment *ev,
  309.         HIStateChangeCodeCreator selectorCreator,
  310.         HIStateChangeCode changedCode);
  311. typedef void   (* SOMLINK somTD_HIObject_SetClipboardSupportFlags)(HIObject *somSelf, Environment *ev,
  312.         HIClipboardSupportFlags flags);
  313. typedef OSStatus   (* SOMLINK somTD_HIObject_Verify)(HIObject *somSelf, Environment *ev);
  314.  
  315. /*
  316.  * -- Typedefs for Inherited Methods
  317.  */
  318. typedef void   (* SOMLINK somTD_HIObject_somInit)(HIObject *somSelf);
  319. typedef void   (* SOMLINK somTD_HIObject_somUninit)(HIObject *somSelf);
  320. typedef SOMObject*   (* SOMLINK somTD_HIObject_somDuplicateReference)(HIObject *somSelf);
  321. typedef boolean   (* SOMLINK somTD_HIObject_somCompareReference)(HIObject *somSelf,
  322.         SOMObject* anObject);
  323. typedef SOMObject*   (* SOMLINK somTD_HIObject_somRelease)(HIObject *somSelf);
  324. typedef void   (* SOMLINK somTD_HIObject_somFree)(HIObject *somSelf);
  325. typedef boolean   (* SOMLINK somTD_HIObject_somCanDelete)(HIObject *somSelf);
  326. typedef SOMClass*   (* SOMLINK somTD_HIObject_somGetClass)(HIObject *somSelf);
  327. typedef corbastring   (* SOMLINK somTD_HIObject_somGetClassName)(HIObject *somSelf);
  328. typedef long   (* SOMLINK somTD_HIObject_somGetSize)(HIObject *somSelf);
  329. typedef boolean   (* SOMLINK somTD_HIObject_somIsA)(HIObject *somSelf,
  330.         SOMClass* aClassObj);
  331. typedef boolean   (* SOMLINK somTD_HIObject_somRespondsTo)(HIObject *somSelf,
  332.         somId mId);
  333. typedef boolean   (* SOMLINK somTD_HIObject_somIsInstanceOf)(HIObject *somSelf,
  334.         SOMClass* aClassObj);
  335. typedef boolean   (* SOMLINK somTD_HIObject_somDispatch)(HIObject *somSelf,
  336.         somToken* retValue,
  337.         somId methodId,
  338.         va_list ap);
  339. typedef boolean   (* SOMLINK somTD_HIObject_somClassDispatch)(HIObject *somSelf,
  340.         SOMClass* clsObj,
  341.         somToken* retValue,
  342.         somId methodId,
  343.         va_list ap);
  344. typedef boolean   (* SOMLINK somTD_HIObject_somCastObj)(HIObject *somSelf,
  345.         SOMClass* cls);
  346. typedef boolean   (* SOMLINK somTD_HIObject_somResetObj)(HIObject *somSelf);
  347. typedef SOMObject*   (* SOMLINK somTD_HIObject_somPrintSelf)(HIObject *somSelf);
  348. typedef void   (* SOMLINK somTD_HIObject_somDumpSelf)(HIObject *somSelf,
  349.         long level);
  350. typedef void   (* SOMLINK somTD_HIObject_somDumpSelfInt)(HIObject *somSelf,
  351.         long level);
  352. }
  353.  
  354. #endif /* HIObject_API */
  355.  
  356.  
  357. /*
  358.  * -- This emitter treats Method Tokens as Thunks by default.
  359.  * -- Use the sc modifier "nothunks" to change this default
  360.  */
  361. #undef somresolve_
  362. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  363.  
  364. /*
  365.  * -- The C++ Wrapper Class for HIObject
  366.  */
  367. class HIObject : public SOMObject
  368. {
  369. public:
  370.  
  371. // HIObject::new registers use of the class object, and then uses somNew
  372. // to allocate memory and load the object method table pointer. 
  373. void *operator new(size_t size)
  374. {
  375.     SOM_IgnoreWarning(size);
  376.     // Allocate memory using the default allocator for HIObject, and
  377.     // clear mem & set method table pointer, call basic initialization
  378.     return (void*) somNewObject(HIObject);
  379. }
  380.  
  381. // HIObject::delete uses the default deallocator for the object's class.
  382. void operator delete(void * obj)
  383. {
  384.     if (obj) {
  385.         SOM_Resolve(obj,SOMObject,somFree)
  386.            ( (SOMObject*) obj );
  387.     }
  388. }
  389.  
  390. /* method: GetWindow */
  391. HIWindow*   GetWindow(Environment *ev)
  392. {
  393.    return SOM_ResolveD(this,HIObject,HIObject,GetWindow)
  394.     (this,ev);
  395. }
  396.  
  397. /* method: GetPort */
  398. CGrafPtr   GetPort(Environment *ev)
  399. {
  400.    return SOM_ResolveD(this,HIObject,HIObject,GetPort)
  401.     (this,ev);
  402. }
  403.  
  404. /* method: GetRefLabel */
  405. void   GetRefLabel(Environment *ev,
  406.         RefLabel* identifier)
  407. {
  408.    SOM_ResolveD(this,HIObject,HIObject,GetRefLabel)
  409.     (this,ev,identifier);
  410. }
  411.  
  412. /* method: GetCollection */
  413. Collection   GetCollection(Environment *ev)
  414. {
  415.    return SOM_ResolveD(this,HIObject,HIObject,GetCollection)
  416.     (this,ev);
  417. }
  418.  
  419. /* method: Init */
  420. OSStatus   Init(Environment *ev,
  421.         RefLabel* identifier,
  422.         Rect* boundingRect)
  423. {
  424.    return SOM_ResolveD(this,HIObject,HIObject,Init)
  425.     (this,ev,identifier,boundingRect);
  426. }
  427.  
  428. /* method: Terminate */
  429. void   Terminate(Environment *ev)
  430. {
  431.    SOM_ResolveD(this,HIObject,HIObject,Terminate)
  432.     (this,ev);
  433. }
  434.  
  435. /* method: Clone */
  436. HIObject*   Clone(Environment *ev)
  437. {
  438.    return SOM_ResolveD(this,HIObject,HIObject,Clone)
  439.     (this,ev);
  440. }
  441.  
  442. /* method: Release */
  443. void   Release(Environment *ev)
  444. {
  445.    SOM_ResolveD(this,HIObject,HIObject,Release)
  446.     (this,ev);
  447. }
  448.  
  449. /* method: GetOwnerCount */
  450. ItemCount   GetOwnerCount(Environment *ev)
  451. {
  452.    return SOM_ResolveD(this,HIObject,HIObject,GetOwnerCount)
  453.     (this,ev);
  454. }
  455.  
  456. /* method: InitFromAERecord */
  457. OSStatus   InitFromAERecord(Environment *ev,
  458.         AESubDesc* baseInitializerData,
  459.         AESubDesc* initializerDataForClass,
  460.         HIAERecordDataFormat dataFormat)
  461. {
  462.    return SOM_ResolveD(this,HIObject,HIObject,InitFromAERecord)
  463.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  464. }
  465.  
  466. /* method: WriteToAERecord */
  467. OSStatus   WriteToAERecord(Environment *ev,
  468.         AERecord* dataForSubclass,
  469.         AERecord* objectData,
  470.         HIAERecordDataFormat dataFormat)
  471. {
  472.    return SOM_ResolveD(this,HIObject,HIObject,WriteToAERecord)
  473.     (this,ev,dataForSubclass,objectData,dataFormat);
  474. }
  475.  
  476. /* method: CalculateOptimalSize */
  477. void   CalculateOptimalSize(Environment *ev,
  478.         SInt16* optimalWidth,
  479.         SInt16* optimalHeight)
  480. {
  481.    SOM_ResolveD(this,HIObject,HIObject,CalculateOptimalSize)
  482.     (this,ev,optimalWidth,optimalHeight);
  483. }
  484.  
  485. /* method: GetBoundingRect */
  486. void   GetBoundingRect(Environment *ev,
  487.         HICoordinateSystem coordinate,
  488.         Rect* boundingRect)
  489. {
  490.    SOM_ResolveD(this,HIObject,HIObject,GetBoundingRect)
  491.     (this,ev,coordinate,boundingRect);
  492. }
  493.  
  494. /* method: SetBoundingRect */
  495. void   SetBoundingRect(Environment *ev,
  496.         HICoordinateSystem coordinate,
  497.         Rect* newBoundingRect)
  498. {
  499.    SOM_ResolveD(this,HIObject,HIObject,SetBoundingRect)
  500.     (this,ev,coordinate,newBoundingRect);
  501. }
  502.  
  503. /* method: SetPosition */
  504. void   SetPosition(Environment *ev,
  505.         HICoordinateSystem coordinate,
  506.         Point* newPosition)
  507. {
  508.    SOM_ResolveD(this,HIObject,HIObject,SetPosition)
  509.     (this,ev,coordinate,newPosition);
  510. }
  511.  
  512. /* method: SetSize */
  513. void   SetSize(Environment *ev,
  514.         SInt16 width,
  515.         SInt16 height)
  516. {
  517.    SOM_ResolveD(this,HIObject,HIObject,SetSize)
  518.     (this,ev,width,height);
  519. }
  520.  
  521. /* method: GetUpdateRect */
  522. void   GetUpdateRect(Environment *ev,
  523.         HICoordinateSystem coordinate,
  524.         Rect* updateRect)
  525. {
  526.    SOM_ResolveD(this,HIObject,HIObject,GetUpdateRect)
  527.     (this,ev,coordinate,updateRect);
  528. }
  529.  
  530. /* method: Enable */
  531. void   Enable(Environment *ev)
  532. {
  533.    SOM_ResolveD(this,HIObject,HIObject,Enable)
  534.     (this,ev);
  535. }
  536.  
  537. /* method: Disable */
  538. void   Disable(Environment *ev)
  539. {
  540.    SOM_ResolveD(this,HIObject,HIObject,Disable)
  541.     (this,ev);
  542. }
  543.  
  544. /* method: IsEnabled */
  545. boolean   IsEnabled(Environment *ev)
  546. {
  547.    return SOM_ResolveD(this,HIObject,HIObject,IsEnabled)
  548.     (this,ev);
  549. }
  550.  
  551. /* method: Show */
  552. void   Show(Environment *ev)
  553. {
  554.    SOM_ResolveD(this,HIObject,HIObject,Show)
  555.     (this,ev);
  556. }
  557.  
  558. /* method: Hide */
  559. void   Hide(Environment *ev)
  560. {
  561.    SOM_ResolveD(this,HIObject,HIObject,Hide)
  562.     (this,ev);
  563. }
  564.  
  565. /* method: IsVisible */
  566. boolean   IsVisible(Environment *ev)
  567. {
  568.    return SOM_ResolveD(this,HIObject,HIObject,IsVisible)
  569.     (this,ev);
  570. }
  571.  
  572. /* method: HandleAppleEvent */
  573. OSStatus   HandleAppleEvent(Environment *ev,
  574.         AEEventClass eventClass,
  575.         AEEventID eventID,
  576.         AppleEvent* theEvent,
  577.         AppleEvent* reply,
  578.         AEHandlerTableRef handlerTableRef)
  579. {
  580.    return SOM_ResolveD(this,HIObject,HIObject,HandleAppleEvent)
  581.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  582. }
  583.  
  584. /* method: HandleActivate */
  585. OSStatus   HandleActivate(Environment *ev,
  586.         AppleEvent* theEvent,
  587.         AppleEvent* reply,
  588.         AEHandlerTableRef handlerTableRef)
  589. {
  590.    return SOM_ResolveD(this,HIObject,HIObject,HandleActivate)
  591.     (this,ev,theEvent,reply,handlerTableRef);
  592. }
  593.  
  594. /* method: HandleDeactivate */
  595. OSStatus   HandleDeactivate(Environment *ev,
  596.         AppleEvent* theEvent,
  597.         AppleEvent* reply,
  598.         AEHandlerTableRef handlerTableRef)
  599. {
  600.    return SOM_ResolveD(this,HIObject,HIObject,HandleDeactivate)
  601.     (this,ev,theEvent,reply,handlerTableRef);
  602. }
  603.  
  604. /* method: HandleNavigation */
  605. OSStatus   HandleNavigation(Environment *ev,
  606.         SInt8 key,
  607.         SInt8 keyCode,
  608.         EventModifiers modifiers,
  609.         AppleEvent* theEvent,
  610.         AppleEvent* reply,
  611.         AEHandlerTableRef handlerTableRef)
  612. {
  613.    return SOM_ResolveD(this,HIObject,HIObject,HandleNavigation)
  614.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  615. }
  616.  
  617. /* method: HandleMouseDownInContent */
  618. OSStatus   HandleMouseDownInContent(Environment *ev,
  619.         Point* portLocalWhere,
  620.         EventModifiers modifiers,
  621.         AppleEvent* theEvent,
  622.         AppleEvent* reply,
  623.         AEHandlerTableRef handlerTableRef)
  624. {
  625.    return SOM_ResolveD(this,HIObject,HIObject,HandleMouseDownInContent)
  626.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  627. }
  628.  
  629. /* method: HandleMouseMovedInContent */
  630. OSStatus   HandleMouseMovedInContent(Environment *ev,
  631.         Point* portLocalWhere,
  632.         EventModifiers modifiers,
  633.         AppleEvent* theEvent,
  634.         AppleEvent* reply,
  635.         AEHandlerTableRef handlerTableRef)
  636. {
  637.    return SOM_ResolveD(this,HIObject,HIObject,HandleMouseMovedInContent)
  638.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  639. }
  640.  
  641. /* method: HandleMouseStoppedMovingInContent */
  642. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  643.         Point* portLocalWhere,
  644.         EventModifiers modifiers,
  645.         AppleEvent* theEvent,
  646.         AppleEvent* reply,
  647.         AEHandlerTableRef handlerTableRef)
  648. {
  649.    return SOM_ResolveD(this,HIObject,HIObject,HandleMouseStoppedMovingInContent)
  650.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  651. }
  652.  
  653. /* method: HandleMouseUpInContent */
  654. OSStatus   HandleMouseUpInContent(Environment *ev,
  655.         Point* portLocalWhere,
  656.         EventModifiers modifiers,
  657.         AppleEvent* theEvent,
  658.         AppleEvent* reply,
  659.         AEHandlerTableRef handlerTableRef)
  660. {
  661.    return SOM_ResolveD(this,HIObject,HIObject,HandleMouseUpInContent)
  662.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  663. }
  664.  
  665. /* method: TakeUserInputFocus */
  666. void   TakeUserInputFocus(Environment *ev)
  667. {
  668.    SOM_ResolveD(this,HIObject,HIObject,TakeUserInputFocus)
  669.     (this,ev);
  670. }
  671.  
  672. /* method: ReleaseUserInputFocus */
  673. void   ReleaseUserInputFocus(Environment *ev)
  674. {
  675.    SOM_ResolveD(this,HIObject,HIObject,ReleaseUserInputFocus)
  676.     (this,ev);
  677. }
  678.  
  679. /* method: HasUserInputFocus */
  680. boolean   HasUserInputFocus(Environment *ev)
  681. {
  682.    return SOM_ResolveD(this,HIObject,HIObject,HasUserInputFocus)
  683.     (this,ev);
  684. }
  685.  
  686. /* method: CanReleaseUserInputFocus */
  687. boolean   CanReleaseUserInputFocus(Environment *ev)
  688. {
  689.    return SOM_ResolveD(this,HIObject,HIObject,CanReleaseUserInputFocus)
  690.     (this,ev);
  691. }
  692.  
  693. /* method: SetUserInputFocusFlags */
  694. void   SetUserInputFocusFlags(Environment *ev,
  695.         HIUserInputFocusFlags flags)
  696. {
  697.    SOM_ResolveD(this,HIObject,HIObject,SetUserInputFocusFlags)
  698.     (this,ev,flags);
  699. }
  700.  
  701. /* method: GetUserInputFocusFlags */
  702. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  703. {
  704.    return SOM_ResolveD(this,HIObject,HIObject,GetUserInputFocusFlags)
  705.     (this,ev);
  706. }
  707.  
  708. /* method: SetTitle */
  709. OSStatus   SetTitle(Environment *ev,
  710.         ConstHIImageRef title,
  711.         HIAdoptionFlags disposalAdoptionFlags)
  712. {
  713.    return SOM_ResolveD(this,HIObject,HIObject,SetTitle)
  714.     (this,ev,title,disposalAdoptionFlags);
  715. }
  716.  
  717. /* method: GetTitle */
  718. OSStatus   GetTitle(Environment *ev,
  719.         HIImageRef* title)
  720. {
  721.    return SOM_ResolveD(this,HIObject,HIObject,GetTitle)
  722.     (this,ev,title);
  723. }
  724.  
  725. /* method: Draw */
  726. void   Draw(Environment *ev,
  727.         CGrafPtr whichPort,
  728.         RgnHandle drawRgn)
  729. {
  730.    SOM_ResolveD(this,HIObject,HIObject,Draw)
  731.     (this,ev,whichPort,drawRgn);
  732. }
  733.  
  734. /* method: Erase */
  735. void   Erase(Environment *ev,
  736.         CGrafPtr whichPort,
  737.         RgnHandle eraseRgn)
  738. {
  739.    SOM_ResolveD(this,HIObject,HIObject,Erase)
  740.     (this,ev,whichPort,eraseRgn);
  741. }
  742.  
  743. /* method: Invalidate */
  744. void   Invalidate(Environment *ev)
  745. {
  746.    SOM_ResolveD(this,HIObject,HIObject,Invalidate)
  747.     (this,ev);
  748. }
  749.  
  750. /* method: GetDrawingMode */
  751. HIDrawingMode   GetDrawingMode(Environment *ev)
  752. {
  753.    return SOM_ResolveD(this,HIObject,HIObject,GetDrawingMode)
  754.     (this,ev);
  755. }
  756.  
  757. /* method: SetDrawingMode */
  758. void   SetDrawingMode(Environment *ev,
  759.         HIDrawingMode drawingMode)
  760. {
  761.    SOM_ResolveD(this,HIObject,HIObject,SetDrawingMode)
  762.     (this,ev,drawingMode);
  763. }
  764.  
  765. /* method: SetBackgroundPattern */
  766. void   SetBackgroundPattern(Environment *ev,
  767.         PixPatHandle backgroundPattern)
  768. {
  769.    SOM_ResolveD(this,HIObject,HIObject,SetBackgroundPattern)
  770.     (this,ev,backgroundPattern);
  771. }
  772.  
  773. /* method: GetBackgroundPattern */
  774. PixPatHandle   GetBackgroundPattern(Environment *ev)
  775. {
  776.    return SOM_ResolveD(this,HIObject,HIObject,GetBackgroundPattern)
  777.     (this,ev);
  778. }
  779.  
  780. /* method: Cut */
  781. void   Cut(Environment *ev)
  782. {
  783.    SOM_ResolveD(this,HIObject,HIObject,Cut)
  784.     (this,ev);
  785. }
  786.  
  787. /* method: Copy */
  788. void   Copy(Environment *ev)
  789. {
  790.    SOM_ResolveD(this,HIObject,HIObject,Copy)
  791.     (this,ev);
  792. }
  793.  
  794. /* method: Paste */
  795. void   Paste(Environment *ev)
  796. {
  797.    SOM_ResolveD(this,HIObject,HIObject,Paste)
  798.     (this,ev);
  799. }
  800.  
  801. /* method: Clear */
  802. void   Clear(Environment *ev)
  803. {
  804.    SOM_ResolveD(this,HIObject,HIObject,Clear)
  805.     (this,ev);
  806. }
  807.  
  808. /* method: GetClipboardSupportFlags */
  809. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  810. {
  811.    return SOM_ResolveD(this,HIObject,HIObject,GetClipboardSupportFlags)
  812.     (this,ev);
  813. }
  814.  
  815. /* method: AddStateChangeCallback */
  816. OSStatus   AddStateChangeCallback(Environment *ev,
  817.         HIStateChangeCallbackProcPtr changedStateCallback,
  818.         HIStateChangeCallbackRef* newCallbackRef)
  819. {
  820.    return SOM_ResolveD(this,HIObject,HIObject,AddStateChangeCallback)
  821.     (this,ev,changedStateCallback,newCallbackRef);
  822. }
  823.  
  824. /* method: RemoveStateChangeCallback */
  825. OSStatus   RemoveStateChangeCallback(Environment *ev,
  826.         HIStateChangeCallbackRef callbackRefToRemove)
  827. {
  828.    return SOM_ResolveD(this,HIObject,HIObject,RemoveStateChangeCallback)
  829.     (this,ev,callbackRefToRemove);
  830. }
  831.  
  832. /* noself procedure: GetHIObjectFromRefLabel */
  833. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  834.         RefLabel* identifier,
  835.         ItemCount requestedObjects,
  836.         ItemCount* totalObjects,
  837.         HIObject** theObjects)
  838. {
  839. return ((somTD_HIObject_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  840.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  841. }
  842.  
  843. /* noself procedure: GetNewHIObject */
  844. static OSStatus   GetNewHIObject(Environment *ev,
  845.         AESubDesc* objectInitializer,
  846.         HIObject** newObject)
  847. {
  848. return ((somTD_HIObject_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  849.     (ev,objectInitializer,newObject);
  850. }
  851.  
  852. /* noself procedure: GetNewHIObjectFromResource */
  853. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  854.         ResID objectInitializerResourceID,
  855.         HIObject** newObject)
  856. {
  857. return ((somTD_HIObject_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  858.     (ev,objectInitializerResourceID,newObject);
  859. }
  860.  
  861. /* method: DrawContent */
  862. void   DrawContent(Environment *ev,
  863.         CGrafPtr whichPort,
  864.         RgnHandle drawRgn)
  865. {
  866.    SOM_ResolveD(this,HIObject,HIObject,DrawContent)
  867.     (this,ev,whichPort,drawRgn);
  868. }
  869.  
  870. /* method: EraseContent */
  871. void   EraseContent(Environment *ev,
  872.         CGrafPtr whichPort,
  873.         RgnHandle regionToErase)
  874. {
  875.    SOM_ResolveD(this,HIObject,HIObject,EraseContent)
  876.     (this,ev,whichPort,regionToErase);
  877. }
  878.  
  879. /* method: TranslatePoint */
  880. void   TranslatePoint(Environment *ev,
  881.         HICoordinateSystem translateFrom,
  882.         HICoordinateSystem translateTo,
  883.         Point* sourcePoint,
  884.         Point* translatedPoint)
  885. {
  886.    SOM_ResolveD(this,HIObject,HIObject,TranslatePoint)
  887.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  888. }
  889.  
  890. /* method: TranslateRect */
  891. void   TranslateRect(Environment *ev,
  892.         HICoordinateSystem translateFrom,
  893.         HICoordinateSystem translateTo,
  894.         Rect* sourceRect,
  895.         Rect* translatedRect)
  896. {
  897.    SOM_ResolveD(this,HIObject,HIObject,TranslateRect)
  898.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  899. }
  900.  
  901. /* method: StateChanged */
  902. void   StateChanged(Environment *ev,
  903.         HIStateChangeCodeCreator selectorCreator,
  904.         HIStateChangeCode changedCode)
  905. {
  906.    SOM_ResolveD(this,HIObject,HIObject,StateChanged)
  907.     (this,ev,selectorCreator,changedCode);
  908. }
  909.  
  910. /* method: SetClipboardSupportFlags */
  911. void   SetClipboardSupportFlags(Environment *ev,
  912.         HIClipboardSupportFlags flags)
  913. {
  914.    SOM_ResolveD(this,HIObject,HIObject,SetClipboardSupportFlags)
  915.     (this,ev,flags);
  916. }
  917.  
  918. /* method: Verify */
  919. OSStatus   Verify(Environment *ev)
  920. {
  921.    return SOM_ResolveD(this,HIObject,HIObject,Verify)
  922.     (this,ev);
  923. }
  924.  
  925.  
  926. /*
  927.  * -- Inherited methods
  928.  */
  929. /* method: somInit */
  930. void   somInit()
  931. {
  932.    SOM_ResolveD(this,HIObject,SOMObject,somInit)
  933.     (this);
  934. }
  935.  
  936. /* method: somUninit */
  937. void   somUninit()
  938. {
  939.    SOM_ResolveD(this,HIObject,SOMObject,somUninit)
  940.     (this);
  941. }
  942.  
  943. /* method: somDuplicateReference */
  944. SOMObject*   somDuplicateReference()
  945. {
  946.    return SOM_ResolveD(this,HIObject,SOMObject,somDuplicateReference)
  947.     (this);
  948. }
  949.  
  950. /* method: somCompareReference */
  951. boolean   somCompareReference(SOMObject* anObject)
  952. {
  953.    return SOM_ResolveD(this,HIObject,SOMObject,somCompareReference)
  954.     (this,anObject);
  955. }
  956.  
  957. /* method: somRelease */
  958. SOMObject*   somRelease()
  959. {
  960.    return SOM_ResolveD(this,HIObject,SOMObject,somRelease)
  961.     (this);
  962. }
  963.  
  964. /* method: somFree */
  965. void   somFree()
  966. {
  967.    SOM_ResolveD(this,HIObject,SOMObject,somFree)
  968.     (this);
  969. }
  970.  
  971. /* method: somCanDelete */
  972. boolean   somCanDelete()
  973. {
  974.    return SOM_ResolveD(this,HIObject,SOMObject,somCanDelete)
  975.     (this);
  976. }
  977.  
  978. /* method: somGetClass */
  979. SOMClass*   somGetClass()
  980. {
  981.    return SOM_ResolveD(this,HIObject,SOMObject,somGetClass)
  982.     (this);
  983. }
  984.  
  985. /* method: somGetClassName */
  986. corbastring   somGetClassName()
  987. {
  988.    return SOM_ResolveD(this,HIObject,SOMObject,somGetClassName)
  989.     (this);
  990. }
  991.  
  992. /* method: somGetSize */
  993. long   somGetSize()
  994. {
  995.    return SOM_ResolveD(this,HIObject,SOMObject,somGetSize)
  996.     (this);
  997. }
  998.  
  999. /* method: somIsA */
  1000. boolean   somIsA(SOMClass* aClassObj)
  1001. {
  1002.    return SOM_ResolveD(this,HIObject,SOMObject,somIsA)
  1003.     (this,aClassObj);
  1004. }
  1005.  
  1006. /* method: somRespondsTo */
  1007. boolean   somRespondsTo(somId mId)
  1008. {
  1009.    return SOM_ResolveD(this,HIObject,SOMObject,somRespondsTo)
  1010.     (this,mId);
  1011. }
  1012.  
  1013. /* method: somIsInstanceOf */
  1014. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1015. {
  1016.    return SOM_ResolveD(this,HIObject,SOMObject,somIsInstanceOf)
  1017.     (this,aClassObj);
  1018. }
  1019.  
  1020. /* va_list method: somDispatch */
  1021. /* the va_list invocation form */
  1022. boolean   HIObject_somDispatch(somToken* retValue,
  1023.         somId methodId,
  1024.         va_list ap)
  1025. {
  1026.    return SOM_ResolveD(this,HIObject,SOMObject,somDispatch)
  1027.     (this,retValue,methodId,ap);
  1028. }
  1029.  
  1030. /* the varargs invocation form */
  1031. boolean   somDispatch(somToken* retValue,
  1032.         somId methodId,
  1033.         ...)
  1034. {
  1035.    va_list ap;
  1036.    va_start(ap, methodId);
  1037.       boolean __somResult = 
  1038.       (boolean) SOM_ResolveD(this,HIObject,SOMObject,somDispatch)
  1039.     (this,retValue,methodId,ap);
  1040.    va_end(ap);
  1041.    return __somResult;
  1042. }
  1043.  
  1044. /* va_list method: somClassDispatch */
  1045. /* the va_list invocation form */
  1046. boolean   HIObject_somClassDispatch(SOMClass* clsObj,
  1047.         somToken* retValue,
  1048.         somId methodId,
  1049.         va_list ap)
  1050. {
  1051.    return SOM_ResolveD(this,HIObject,SOMObject,somClassDispatch)
  1052.     (this,clsObj,retValue,methodId,ap);
  1053. }
  1054.  
  1055. /* the varargs invocation form */
  1056. boolean   somClassDispatch(SOMClass* clsObj,
  1057.         somToken* retValue,
  1058.         somId methodId,
  1059.         ...)
  1060. {
  1061.    va_list ap;
  1062.    va_start(ap, methodId);
  1063.       boolean __somResult = 
  1064.       (boolean) SOM_ResolveD(this,HIObject,SOMObject,somClassDispatch)
  1065.     (this,clsObj,retValue,methodId,ap);
  1066.    va_end(ap);
  1067.    return __somResult;
  1068. }
  1069.  
  1070. /* method: somCastObj */
  1071. boolean   somCastObj(SOMClass* cls)
  1072. {
  1073.    return SOM_ResolveD(this,HIObject,SOMObject,somCastObj)
  1074.     (this,cls);
  1075. }
  1076.  
  1077. /* method: somResetObj */
  1078. boolean   somResetObj()
  1079. {
  1080.    return SOM_ResolveD(this,HIObject,SOMObject,somResetObj)
  1081.     (this);
  1082. }
  1083.  
  1084. /* method: somPrintSelf */
  1085. SOMObject*   somPrintSelf()
  1086. {
  1087.    return SOM_ResolveD(this,HIObject,SOMObject,somPrintSelf)
  1088.     (this);
  1089. }
  1090.  
  1091. /* method: somDumpSelf */
  1092. void   somDumpSelf(long level)
  1093. {
  1094.    SOM_ResolveD(this,HIObject,SOMObject,somDumpSelf)
  1095.     (this,level);
  1096. }
  1097.  
  1098. /* method: somDumpSelfInt */
  1099. void   somDumpSelfInt(long level)
  1100. {
  1101.    SOM_ResolveD(this,HIObject,SOMObject,somDumpSelfInt)
  1102.     (this,level);
  1103. }
  1104.  
  1105. };   /* HIObject */
  1106.  
  1107.  
  1108.  
  1109. #endif       /* SOM_HIObject_xh */
  1110.